// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
    const log = cloud.logger();
    const ID = event._id;
    try {
        return await cloud.database().collection('musicData').where({
            _id: ID
        }).get({
            success (res) {
                return res;
            }
        })
    } catch (error) {
        log.error({
            error
        });
        return error;
    }
}